package com.gsafety.libraryktx.config

import android.os.Environment
import com.gsafety.libraryktx.BuildConfig
import java.io.File

class Constant {
    companion object {
        const val  IP_LOGIN_URL = BuildConfig.BASE_LOGIN_URL
        const val  IP_SYSTEM_URL = BuildConfig.BASE_SYSTEM_URL
        //登录保存
        const val Login_KEY = "login_key"
        const val EventBus_KEY_TEST = "test"//测试
        //图片压缩和拍摄缓存目录
        val PICTURES_DIR = Environment.getExternalStorageDirectory().toString() + File.separator + "Pictures"

        //应用目录
        val APP_DIR = Environment.getExternalStorageDirectory().toString() + File.separator + "yujing"

        //缓存目录
        val CACHE_DIR = APP_DIR + File.separator + "Cache"
        val NO_DEAL_CODE = "0"
        val IN_DEAL_CODE = "1"
        val HAS_DEAL_CODE = "2"
        val EventBus_KEY_Alarm_Title = "alarmTitle"
        //（0：催办 1：接警 2：反馈 3：批示）
        var DEAL_STATE_CUIBAN = "0"
        var DEAL_STATE_RECEIVE = "1"
        var DEAL_STATE_FEEDBACK = "2"
        var DEAL_STATE_PISHI = "3"
        var DEAL_STATE_FINISH = "4"
        var DEAL_STATE_RESOLVE = "5"
        var DEAL_STATE_NO_RESOLVE = "6"
        var DEAL_REQ_FEEDBACK_CODE = 0
        var DEAL_REQ_FINISH_CODE = 1
        var DEAL_RES_OK_CODE = 2
        val EventBus_KEY_Message_Num = "message_num"
        val EventBus_KEY_Alarm_Deal_Click = "alarm_deal_click"
        val EventBus_KEY_Alarm_Deal_Switch = "alarm_deal_switch"
        val EventBus_KEY_Know_Switch = "know_switch"
        val EventBus_KEY_LOGINOUT = "login_out"
        var GAS_PROJECT = "gas"
        var BRIDGE_PROJECT = "bridge"
        var WATER_PROJECT = "water"
        var DRAIN_PROJECT = "drain"
        var HEAT_PROJECT = "heat"






        /***************************************************菜单权限编码******************************/
        //分析报告
        const val CODE_ANALYSIS_REPORT = "YJZS-0004-01"

        //辅助分析
        const val CODE_FUZHU_ANALYSIS = "YJZS-0004-02"

        //首页知识库
        const val CODE_HOME_KNOWLEDGE = "YJSY-0001-01"

        //月报
        const val CODE_MONTH= "YJZS-0004-01-01"

        //首页
        const val CODE_HOME_PAGE = "YJSY-0001"
        //季报
        const val CODE_QUARTERLY_REPORT= "YJZS-0004-01-02"

        //已完成
        const val CODE_COMPLETED= "YJSY-0001-06"

        //首页我的关注
        const val CODE_HOME_WDGZ= "YJSY-0001-07"

        //今日预警数
        const val CODE_TODAY_WARNING= "YJSY-0001-02"

        //待处置
        const val CODE_UNHANDLE = "YJSY-0001-03"

        //首页统计分析
        const val CODE_HOME_TJ = "YJSY-0001-03"

        //处置中
        const val CODE_HANDING = "YJSY-0001-05"

        //案例库
        const val CODE_CASE = "YJZS-0004-02-03"

        //预警
        const val CODE_YJ_PAGE= "YJYJ-0002"

        //消息
        const val CODE_MESSAGE_PAGE = "YJXX-0003"

        //我的
        const val CODE_MY_PAGE = "YJWD-0005"

        //年报
        const val CODE_YEAR_REPORT = "YJZS-0004-01-03"

        //知识库
        const val CODE_KNOWLEDGE_PAGE="YJZS-0004"

        //事件库
        const val CODE_SJ="YJZS-0004-02-01"

        //预案库
        const val CODE_YA="YJZS-0004-02-02"

        //接警
        const val CODE_JJ="YJYJ-0002-02"

        //催办
        const val CODE_CB="YJYJ-0002-03"

        //批示
        const val CODE_PS="YJYJ-0002-04"

        //反馈
        const val CODE_FEEDBACK="YJYJ-0002-05"

        //反馈已完成
        const val CODE_FEEDBACK_WC="YJYJ-0002-05-01"

        //解除
        const val CODE_COMPLETE="YJYJ-0002-06"

        //我的关注
        const val CODE_WDGZ="YJWD-0005-01"

        //我的点评
        const val CODE_WDDP="YJWD-0005-02"

        //统计分析
        const val CODE_TJFX="YJWD-0005-03"


        //账号管理
        const val CODE_ZHGL="YJWD-0005-04"

        //背景颜色
        const val CODE_BJYS="YJWD-0005-06"

        //修改密码
        const val CODE_XGMM="YJWD-0005-05"
        /***************************************************菜单权限编码******************************/

        //flag
        const val Extra_TITLE_KEY="title"
        const val Extra_CODE_KEY="code"
        const val Extra_TYPE_KEY="type"
        const val Extra_ID_KEY = "Id"
        const val Extra_PATH_KEY = "path";

        /************************专项code*****************************/
        //燃气
        const val CODE_WARN_GAS = "1000401"
        //供水
        const val CODE_WARN_WS = "1000402"
        //排水
        const val CODE_WARN_PS = "1000403"
        //桥梁
        const val CODE_WARN_BRIDGE = "1000404"
        //热力
        const val CODE_WARN_HEAT = "1000405"
        //月报
        const val CODE_REPORT_MONTH = "1000301"
        //季报
        const val CODE_REPORT_JI = "1000302"
        //年报
        const val CODE_REPORT_YEAR = "1000303"
        /************************专项code*****************************/


        const val TOKEN="GSCITYLL_SSO_TOKENSESS"

        const val SYS_KEY="GSCITYLL_SYSUNISIGN"

        const val SYS_VALUE="GSCITYLL_SYS_INTEROPER_APP"
    }

}